<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsEvaluatesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('goods_evaluates', function(Blueprint $table)
		{
			$table->increments('id');

			//产品id
			$table->integer('goods_id');

			//
			$table->text('content')->comment('评价内容');

			//
			$table->text('goods_info')->comment('评价用户信息');

			//
			$table->timestamp('evaluate_at')->nullable()->comment('评价时间');

			$table->string('order_id')->comment('订单id');

			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('goods_evaluates');
	}

}
